#ifndef RECTANGLE_H
#define	RECTANGLE_H

#include "Vector2D.h"

class Rectangle2
{

private:

	Vector2D m_topLeft;
	Vector2D m_size;

public :

	Rectangle2(float x, float y, float width, float height);
	Rectangle2(const Vector2D& topLeft, const Vector2D& btmRight);
	bool Contains(float x, float y) const;
	bool Contains(const Vector2D& point) const;
	float GetX() const;
	float GetY() const;
	float GetWidth() const;
	float GetHeight() const;
	void SetPosition(const Vector2D& vect);
	void SetPosition(float x, float y);
	void MoveBy(const Vector2D& vect);
	void MoveBy(float x, float y);
	bool CollidesWith(const Rectangle2& rect) const;
};

#endif